package com.bci.pwtz.service;

import java.util.List;

import com.bci.pwtz.common.util.PaginationList;
import com.bci.pwtz.exception.CanNotDeleteException;
import com.bci.pwtz.exception.PwtzDatabaseException;
import com.bci.pwtz.mysql.model.Dydlfjx;

public interface DydlfjxService {
/**
 * 查询低压电缆分压箱
 * @param dydlfjxId
 * @return
 * @throws PwtzDatabaseException
 */
Dydlfjx load(String dydlfjxId) throws PwtzDatabaseException;
/**
 * 添加低压电缆分压箱
 * @param dydlfjx
 * @return
 * @throws PwtzDatabaseException
 */
Dydlfjx add(Dydlfjx dydlfjx) throws PwtzDatabaseException;
/**
 * 删除低压电缆分压箱
 * @param deviceid
 * @return
 * @throws PwtzDatabaseException
 */
int delete(String deviceid) throws PwtzDatabaseException,CanNotDeleteException;
/**
 * 修改低压电缆分压箱
 * @param dydlfjx
 * @return
 * @throws PwtzDatabaseException
 */
int update(Dydlfjx dydlfjx) throws PwtzDatabaseException;
/**
 * 分页查询一段时间内修改的低压电缆分压箱
 * @param beginTime
 * @param endTime
 * @param pageSize
 * @param pageNo
 * @return
 * @throws PwtzDatabaseException
 */
PaginationList<Dydlfjx> selectDydlfjxs(String devicename,Long companyId,int portalType,String[] medLineCodes,String lineCode,String beginTime,String endTime,int pageSize,int pageNo,String currentDeviceId)throws PwtzDatabaseException;

List<Dydlfjx> getSamePreDeviceList(String deviceid)throws PwtzDatabaseException;

boolean deleteDevice(String deviceid)throws PwtzDatabaseException,CanNotDeleteException;

public int updateLastSyncDevice(Long companyId,String lastSyncTime) throws PwtzDatabaseException;
}
